package com.mtsmda.chapter3.overridingEx;

class A{
	
}

class B extends A{
	
}

public class OverloadingEx {
	
	public static void main(String[] args) {
		
		A a = new A();
		B b = new B();
		A ab = new B();
		
		OverloadingEx go = new OverloadingEx();
		go.go(a);
		go.go(b);
		go.go(ab);
	}
	
	void go(A a){
		System.out.println("A");
	}
	
	void go(B b){
		System.out.println("B");
	}
	
}